import request from '@/utils/request' // 引入封装得axios

// 获取新闻列表
export function getPageList (params) {
    var pagename = "";
    if (typeof params.pagename === 'undefined') {
        pagename = "main"
    }else{
        pagename = params.pagename
    }
    return request({
        url: '/api/query/pagelist/select%7C*/where%7Cname=@'+pagename+'@',
        method: 'GET'
    })
}

